package com.iyouqu.dsp.api.restful;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Path("ads")
@Scope("prototype")
@Controller
public class DspApi extends BaseApi {
	
	@GET
	@Path("test")
	@Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8")
	public String test(@Context HttpHeaders hs, @QueryParam("s1") String s1) {
		System.out.println(getIp(hs));
		return "test:" + s1;
	}
	
	
}
